package com.indeep.user.mapper.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Laixin
 * @description app_blacklist
 * @date 2023-08-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("app_blacklist")
public class AppBlacklistPO implements Serializable {

    private static final long serialVersionUID = 4L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 执行拉黑操作的用户id
     */
    private Long operationalUser;

    /**
     * 被拉黑的用户id
     */
    private Long shieldedUser;

    /**
     * 状态0——未拉黑1——已拉黑
     */
    private int status;


    /**
     * 展示关注数    0：关闭 1：开启
     */
    private int showFollow;

    /**
     * 展示粉丝数    0：关闭 1：开启
     */
    private int showFans;

    /**
     * 展示赞过   0：关闭 1：开启
     */
    private int showLike;



    /**
     * 不允许他（她）查看主页    0：关闭 1：开启
     */
    private int showHomepage;
    /**
     * 创建时间-创建时自动填充
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间-创建与修改时自动填充
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public AppBlacklistPO(Long userId, Long toUserId, Integer status, Integer showFollow, Integer showFans, Integer showLike, Integer showHomepage) {
        this.operationalUser = userId;
        this.shieldedUser = toUserId;
        this.status = status;
        this.showFollow = showFollow;
        this.showFans = showFans;
        this.showLike = showLike;
        this.showHomepage = showHomepage;

    }
}